# /usr/bin/env python
# coding=utf8
import I18n
import copy
import json

i18n_stance = I18n.I18n('./zh.json','./translate_list.json')
# print(i18n_stance.get_language_config())
# print(i18n_stance.get_translate_list())
# i18n_stance.get_translate_list()

# i18n_stance.file_write()

for item in i18n_stance.get_translate_list():
    # print(i18n_stance.get_language_config())
    
    source_text = i18n_stance.read_file('./zh.json')
    # print(source_text)
    i18n_stance.ergodic(source_text,item['target_language'])